package com.liming.common.pojo.entity.stock;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.liming.common.pojo.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author liming
 * @date 2025/1/21
 */
@Data
@TableName("se_stock_lock")
@EqualsAndHashCode(callSuper = true)
public class StockLock extends BaseEntity {

    /**
     * 库存ID
     */
    private Long stockId;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 锁定数量
     */
    private Integer quantity;

    /**
     * 状态：1-锁定中，2-已释放，3-已扣减
     */
    private Integer status;
}
